package top.linuyx.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author Linuyx
 * @Description AccountRoleMapper
 * @Date Created in 2021-05-07 19:04
 */

@Repository
public interface AccountRoleMapper {

    /**
     * 给账户添加角色
     *
     * @param accountId 账户id
     * @param roles 角色集合
     */
    void insertAccountRole(@Param("accountId") Long accountId, @Param("roles") List<Long> roles);

}
